Accelerator SAP S/4HANA Invoices System API - Implementation Template
Setup guide
Please review the pre-requisite setup instructions for setting up SAP connector on MuleSoft.
Importing Templates into Anypoint Studio
- In Studio, click the Exchange X icon in the upper left of the taskbar.
- Log in with your Anypoint Platform credentials.
- Search for the template
- Click Open.
Running Templates in Anypoint Studio
After you import your template into Studio, follow these configuration steps to run it:
- Right-click the template project folder.
- Hover your mouse over 'Run as'.
- Click Mule Application (configure).
- Inside the dialog, select Environment and set the variable:
mule.env
to the appropriate value (e.g., dev or local).mule.key
to the property encryption key that you used to encrypt your secure properties.
- Click Run.
HTTP Configuration
http.host
— sets the service host interface. It should be configured inconfig-<mule.env>.yaml
file. (Defaults to 0.0.0.0 for all interfaces)https.port
— sets the service port number. It should be configured inconfig-<mule.env>.yaml
file. (Default 8082)keystore.path
— sets the path to the keystore. It should be configured inconfig-<mule.env>.yaml
file. (Default accelerator-keystore.jks)keystore.alias
— sets the keystore alias. It should be configured inconfig-<mule.env>.yaml
file. (Default solutionsteam)keystore.keyPassword
— sets the keystore keyPassword. It should be configured inconfig-<mule.env>.yaml
file. (Default mulesoft)keystore.password
— sets the keystore password. It should be configured inconfig-<mule.env>.yaml
file. (Default mulesoft)
Testing it
- Use Advanced Rest Client or Postman to send a request over HTTP. The template includes a postman collection in the
src/test/resources
folder. - The environment file for the Postman collection is also included in the
src/test/resources
folder.